package com.itheima.service.impl;

import com.itheima.dao.PermissionDao;
import com.itheima.pojo.Permission;
import com.itheima.service.PermissionService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionDao permissionDao;
    //查询所有的权限
    @Override
    public List<Permission> findAllPermission() {
       List<Permission> list= permissionDao.findAllPermission();
        return list;
    }
}
